import { OrderType } from './index';

export enum statusCodeEnum {
  SUCCESS,
  ERROR,
  UNAUTHORIZED = 401,
  FORBIDDEN,
  NOT_FOUND,
  BAD_REQUEST,
  METHOD_NOT_ALLOWED,
  INTERNAL_SERVER_ERROR,
  NOT_IMPLEMENTED,
  BAD_GATEWAY,
  SERVICE_UNAVAILABLE,
  GATEWAY_TIMEOUT,
  HTTP_VERSION_NOT_SUPPORTED,
  INSUFFICIENT_STORAGE,
  NOT_EXTENDED,
  NETWORK_AUTHENTICATION_REQUIRED,
}

export interface IBaseTableResonseExtraData {
  createBy?: string;
  createTime?: string;
  updateBy?: string;
  updateTime?: string;
  delFlag?: number;
}

export interface IBaseTableRequestParams {
  current?: number;
  size?: number;
  sort?: string;
  order?: OrderType;
}

export interface IBaseTableResonseWrap<T> {
  records: T[];
  total: number;
  size: number;
  current: number;
  pages: number;
}
